﻿<Window x:Class="SimpleSim.WpfApplication.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="317" Width="419">
    <StackPanel>
        <Menu IsMainMenu="True">
            <MenuItem Header="_File">
                <MenuItem Header="_Exit" Click="MenuItem_Click"/>
            </MenuItem>
            <MenuItem Header="_Edit">
                <MenuItem Header="_Add Tag" Click="MenuItem_Click"/>
                <MenuItem Header="_Remove Tag" Click="MenuItem_Click"/>
            </MenuItem>
        </Menu>
        <Expander Header="Tag Database">
            <DataGrid x:Name="dataGridTagDatabase" 
                      AutoGenerateColumns="True" 
                      IsReadOnly="True">
                <DataGrid.Columns>
                    <DataGridTextColumn Binding="{Binding Path=Name}" Header="Tag Name"/>
                    <DataGridTextColumn Binding="{Binding Path=Description}" Header="Description"/>
                </DataGrid.Columns>
            </DataGrid>
        </Expander>
        <Expander Header="Tag Details">
            <Grid Height="112" Width="497" x:Name="gridTagDetails">
                <Label Content="Tag Name" Height="28" HorizontalAlignment="Left" Margin="6,6,0,0" Name="label1" VerticalAlignment="Top" />
                <Label Content="Description" Height="28" HorizontalAlignment="Left" Margin="6,37,0,0" Name="label2" VerticalAlignment="Top" />
                <TextBox Height="23" Margin="82,8,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="120" Text="{Binding Path=Name}" TextChanged="TagDetailsTextBoxTextChanged"/>
                <TextBox HorizontalAlignment="Left" Margin="82,39,0,50" Width="120" Text="{Binding Path=Description}" TextChanged="TagDetailsTextBoxTextChanged"/>
            </Grid>
        </Expander>
    </StackPanel>
</Window>
